﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("Medicine")]
    public class Medicine
    {
        public string MedicineId { set; get; }
        public string BrandName { get; set; }
        public string GenericName { get; set; }
        public double Price { get; set; }
        public int Quantity { get; set; }
        public DateTime ExpirationDate { get; set; }
        public string Lot { get; set; }

      /// <summary>
      /// Construct with all the atributes
      /// </summary>
      /// <param name="i">id</param>
      /// <param name="bn">brand name</param>
      /// <param name="gn">generic name</param>
      /// <param name="p">price</param>
      /// <param name="q">quantity</param>
      /// <param name="e">expiration date</param>
      /// <param name="l">lot</param>
      /// 
        public Medicine()
        {
        }


        public Medicine(string id, string brandName,string genericName,int price,int quantity,DateTime expirationDate,string lot)
        {
            this.MedicineId = id;
            this.BrandName = brandName;
            this.GenericName = genericName;
            this.Price = price;
            this.Quantity = quantity;
            this.ExpirationDate = expirationDate;
            this.Lot = lot;
        }
    }
}
